//
//  BPGlobalFile.swift
//  BPWeiBo
//
//  Created by apple on 16/4/11.
//  Copyright © 2016年 apple. All rights reserved.

import UIKit

//设置全局的变量
//网络请求相关
let client_id = "2022117409"
let client_secret = "da960ebc5f272d6dcd7d3e3d0e6faf94"
let redirect_uri = "http://www.baidu.com"

//屏幕宽高
let ScreenHeight = UIScreen.mainScreen().bounds.height
let ScreenWidth = UIScreen.mainScreen().bounds.width

//颜色
let BapiColor: UIColor =  UIColor(red: 236 / 255.0, green: 236 / 255.0, blue: 236 / 255.0, alpha: 1)

//通知名称
let notifcationName = "ChangeViewController"

//随机色
func randomColor() -> UIColor {
    let r = CGFloat(random() % 256) / 255
    let g = CGFloat(random() % 256) / 255
    let b = CGFloat(random() % 256) / 255
    return UIColor(red: r, green: g, blue: b, alpha: 0.6)

}

//全局的日期格式化对象
let sharedDF = NSDateFormatter()

//定义一个全局的basetag
let baseTag = 100